#include "../include/generator.h"

generator::generator(op * ops)
{
    string tmp, file;
    file << ops->expression << "_kernels.cl"
    tmp << "cp ../../templates/template.cl " << file;
    system(tmp.c_str());
    mout.open(file.c_str(), ios::app);

    mout << fixed << "\treturn ((" << ops->expression << ")*" << fixed << ops->size << ");" << endl << "}" << endl;

}

generator::~generator()
{
    mout.close();
}
